/*
    This file is part of OpenWordle.

    OpenWordle is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    OpenWordle is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with OpenWordle.  If not, see <http://www.gnu.org/licenses/>.
*/

class Word implements Comparable
{
  public String text;
  public int weight;
  public float x,y;
  public float fontSize;
  public float angle;
  
  Word( String _text )
  {
    this( _text, 1 );
  }
  
  Word( String _text, int _weight )
  {
    this.text = _text;
    this.weight = _weight;
  }
  
  String toString()
  {
    return text;
  }

  int compareTo( Object obj )
  {
    Word w2 = (Word)obj;
    return w2.weight - this.weight;
  }
}
